
#ifndef __TEXT_H__
#define __TEXT_H__
#define W 50
#define H 10
#define WallH "|"
#define WallW "="
#define SP " "
#define RT "\n"
#define P1 "#"
#define P2 "*"
#define P3 "$"
#include "../model/vector2.h"
enum MenuPos {
	top=0,
	top_center,
	center,
	bottom_center,
	bottom
};
char scrBuf[W*(H+3)];
char scrBufBack[W*(H+3)];
static int _ScreenIndex=0;
extern void scrCatInt(char *scrbuf,int catInt);
extern void scrCatStrInt(char *scrbuf,char *catBuf,int catInt);
extern void scrBufCatBack(int type);
extern void showStr(char *destBuf,struct V2s v2s,const char *str,int isWithBack);
extern void txtClear();
extern int showTxt(struct V2s v2s,const char *str);
extern void showMapRect();
extern void showMenu(int pos,const char *str);
#endif
